package ru.jexp.rcp.supply.beans.se;

import org.eclipse.jface.viewers.TreeNode;

public class EkAddFormEvent {

	public static final int ADD = 1;
	public static final int EDIT = 2;

	private int command;
	private boolean calculateEdizmer;
	private boolean calculatePf;
	private TreeNode value;

	public EkAddFormEvent(int command, TreeNode value, boolean calculateEdizmer,
			boolean calculatePf) {
		this.command = command;
		this.value = value;
		this.calculateEdizmer = calculateEdizmer;
		this.calculatePf = calculatePf;
	}

	public int getCommand() {
		return command;
	}

	public TreeNode getValue() {
		return value;
	}

	public boolean isCalculateEdizmer() {
		return calculateEdizmer;
	}

	public boolean isCalculatePf() {
		return calculatePf;
	}

}
